package scut.kent.shopping.util;

public class SystemContex {
	private static ThreadLocal<Integer> pageIndex = new ThreadLocal<Integer>();
	private static ThreadLocal<Integer> pageOffset=new ThreadLocal<Integer>();
	private static ThreadLocal<Integer> pageSize = new ThreadLocal<Integer>();
	public int getPageIndex() {
		return pageIndex.get();
	}
	public static void setPageIndex(int _pageIndex) {
		pageIndex.set(_pageIndex);
	}
	public static void removePageIndex(){
		pageIndex.remove();
	}
	public static int getPageOffset() {
		return pageOffset.get();
	}
	public static void setPageOffset(int _pageOffset) {
		pageOffset.set(_pageOffset);
	}
	public static void removePageOffset(){
		pageOffset.remove();
	}
	public static int getPageSize() {
		return pageSize.get();
	}
	public static void setPageSize(int _pageSize) {
		pageSize.set(_pageSize);
	}
	public static void removePageSize(){
		pageSize.remove();
	}
}
